using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using ShopPowerTemplate.IoC;
using ShopPowerTemplate.Entities;
using ShopPowerTemplate.Services.Tests.Properties;

namespace ShopPowerTemplate.Services.Tests
{
    public partial class OrderStateServiceUtil
    {
	
		static internal IOrderStateService CreateOrderStateService()
        {
            IOrderStateService target = IoCFactory.Resolve<IOrderStateService>();
            return target;
        }
				#region OrderState Test
 
        

		public static OrderState CreateOrderState()
        {
            OrderState result = GetOrderState();
            IOrderStateService service = CreateOrderStateService();
			service.Add(result);

			result = service.Find(result.Id);
            return result;
        }
		
		public static OrderState CreateOrderStateFull()
        {
            OrderState result = GetOrderStateFull();
            IOrderStateService service = CreateOrderStateService();
			service.Add(result);

			result = service.Find(result.Id);
            return result;
        }
				
        public static OrderState GetOrderState()
        {
            OrderState result = new OrderState();
			
            result.Name = Guid.NewGuid().ToString();

            result.Description = Guid.NewGuid().ToString();
 
            return result;
            
        }
		
        public static OrderState GetOrderStateFull()
        {
            OrderState result = GetOrderState();
             
            return result;
            
        }
		
		#endregion OrderState Test
	

	}
}
